﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NS_DBOP;

public partial class Flow_History : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Bind();
        }
    }
    public void Bind()
    {
        DataSet ds = new DBoperate().ExecuteQuery("select * from FlowPath where Comment<>'' and DocID=" + Convert.ToInt32(Request.QueryString["id"]), 0, 0, "table");
        this.GridView1.DataSource = ds.Tables[0];
        this.GridView1.DataBind();
    }

    public string getUser(string id)
    {
        string user = new DBoperate().ExecuteScalar("select Name from Employee where Employeeid=" + Convert.ToInt32(id)).ToString();
        return user;
    }
}
